CONFIG += starlab
STARLAB_EXTERNAL_DEPENDS += glut
STARLAB_DEPENDS += common parameters

SOURCES += main.cpp
SOURCES += CmdLineParser.cpp
HEADERS += CmdLineParser.h

#------------- BASIC CONFIG ---------------
# NOTE: QtCreator bug, $$[DSTPATH] wouldn't produce correct run configuration
DESTDIR = $$PWD/../distrib
QT *= opengl
TARGET = starlab
TEMPLATE = app
RESOURCES = starlab.qrc
ICON = images/starlab.icns

win32{
    DESTDIR = "$$OUT_PWD" #$$quote($$[BUILD_PATH]/distrib)
}
 
#--- Setup DYLD path, so we can run starlab everywhere.... BUT THIS DOES NOT WORK :(
#macx:QMAKE_POST_LINK="export DYLD_LIBRARY_PATH=$$[BLDPATH]/distrib/starlab.app/Contents/MacOS/"
#--- and neither does this...
#runstarlabeverywhere.target = runstarlabeverywhere
#runstarlabeverywhere.commands = export DYLD_LIBRARY_PATH=$$[BLDPATH]/distrib/starlab.app/Contents/MacOS/
#QMAKE_EXTRA_TARGETS += runstarlabeverywhere
#POST_TARGETDEPS += runstarlabeverywhere

#------------------ CORRECT BROKEN QMAKE CLEAN -------------------
macx:QMAKE_CLEAN  += $$PWD/../distrib/starlab.app/Contents/MacOS/starlab
macx:QMAKE_CLEAN  += $$PWD/../distrib/plugins/*.dylib
win32:QMAKE_CLEAN += $$PWD/../distrib/*.exe
